Skip to content

Feat/mobile reputation notification quality - #938

Merged
johdanike merged 7 commits into
SwiftChainn:mainfrom
Fatima0105:feat/mobile-reputation-notification-quality
Oct 27, 2026
Merged

johdanike merged 7 commits into
SwiftChainn:mainfrom
Fatima0105:feat/mobile-reputation-notification-quality

Conversation

@Fatima0105

@Fatima0105 Fatima0105 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR improves delivery verification, mobile handoff scanning, driver reputation data, and
notification preferences coverage across the SwiftChain frontend.

Changes

Signature Capture and Proof Upload

  • Added tests for the signature canvas dimensions and rendering.
  • Covered mouse and mobile touch drawing interactions.
  • Verified drawing-state tracking, clearing, and PNG data URL generation.
  • Added ProofUpload integration coverage.
  • Verified delivery proof submission remains disabled until a signature is provided.

Mobile QR Scanner

  • Added a mobile-first QR scanner screen for package handoff verification.
  • Requests camera permission and displays clear permission and error states.
  • Displays a live camera feed with a scan-region overlay.
  • Automatically detects and decodes QR codes.
  • Shows delivery details after a successful scan.
  • Provides manual code entry when scanning is unavailable.

Driver Reviews Hook

  • Added useDriverReviews using Axios and TanStack React Query.
  • Fetches driver reviews and on-chain reputation scores.
  • Supports rating, date-range, and verified-review filters.
  • Supports newest, oldest, and highest-rated sorting.
  • Returns loading, error, retry, and pagination state.

Notification Preferences Tests

  • Added component and hook coverage for grouped notification preferences.
  • Covered toggle interactions and saved preference persistence.
  • Verified reset-to-default behavior.
  • Covered successful save confirmation.
  • Added empty, loading, and error states with retry behavior.

Validation

  • Signature drawing, clearing, saving, and touch interactions are covered.
  • ProofUpload signature validation is covered.
  • QR permission, scanning, success, error, and manual-entry flows are covered.
  • Driver review filtering, sorting, reputation, and pagination behavior are covered.
  • Notification preference rendering, saving, reset, empty state, and retry behavior are covered.

Closes #825
Closes #826
Closes #848
Closes #879

@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@Fatima0105 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@johdanike

Copy link
Copy Markdown
Contributor

Please rewrite this pr description. I cannot possible derive context from what you opened a pr for. Thank you

@johdanike

Copy link
Copy Markdown
Contributor

And if possible resolve the existing conflicts

@johdanike
johdanike merged commit 44e9a7c into SwiftChainn:main Oct 27, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants